package com.ailink.sap.xml;

public class XmlUtils {

    public static <T> T deserialize(Class<?> _class, String xml) {
        XmlDeserialize xmlDeserialize = new XmlDeserialize(_class, xml);
        return xmlDeserialize.deserialize();
    }

    public static String serialize(Object object, boolean isHaveHead) {
        XmlSerialize xmlSerialize = new XmlSerialize(object, isHaveHead);
        return xmlSerialize.serialize();
    }
}
